//员工管理模块

import Vue from "vue";
export default {
    namespaced: true,
    actions: {},
    mutations:{
        //checkbox选择的行放在multipleSelection数组中
        handleSelectionChange(state,val) {
            state.multipleSelection = val;
        },
    },
    state:{
        //当前页
        page:1,
        //每页的个数
        currentPage:10,
        //一共有多少数据
        total:null,
        //每页显示行数的列表
        options: [{
            value: '选项1',
            label: '10'
        }, {
            value: '选项2',
            label: '25'
        }, {
            value: '选项3',
            label: '50'
        }, {
            value: '选项4',
            label: '100'
        }],
        //表格列表
        tableData: [{
            id: '01',
            name: '路飞',
            sex: '男',
            age:'19岁',
            edubg:'本科',
            phone:'162526',
            marital:'未婚',
            level:'A',
            department:'财务部',
            workingyears:'5年',
            cardnum:'165265616',
            status:'在职',
            leaveDate:'2021-01-02'
        }, {
            id: '02',
            name: '索隆',
            sex: '男',
            age:'21岁',
            edubg:'专科',
            phone:'162526',
            marital:'未婚',
            level:'A',
            department:'开发部',
            workingyears:'6年',
            cardnum:'165265616',
            status:'离职',
            leaveDate:'2021-01-02'
        }, {
            id: '03',
            name: '娜美',
            sex: '女',
            age:'20岁',
            edubg:'本科',
            phone:'162526',
            marital:'未婚',
            level:'A',
            department:'宣传部',
            workingyears:'5年',
            cardnum:'165265616',
            status:'在职',
            leaveDate:'2021-01-02'
        }, {
            id: '04',
            name: '乔巴',
            sex: '男',
            age:'19岁',
            edubg:'本科',
            phone:'162526',
            marital:'未婚',
            level:'A',
            department:'财务部',
            workingyears:'5年',
            cardnum:'165265616',
            status:'离职',
            leaveDate:'2021-01-02'
        }, {
            id: '05',
            name: '布鲁克',
            sex: '男',
            age:'19岁',
            edubg:'本科',
            phone:'162526',
            marital:'未婚',
            level:'A',
            department:'财务部',
            workingyears:'5年',
            cardnum:'165265616',
            status:'在职',
            leaveDate:'2021-01-02'
        }, {
            id: '06',
            name: '香治',
            sex: '男',
            age:'19岁',
            edubg:'本科',
            phone:'162526',
            marital:'未婚',
            level:'A',
            department:'财务部',
            workingyears:'5年',
            cardnum:'165265616',
            status:'在职',
            leaveDate:'2021-01-02'
        }, {
            id: '07',
            name: '萨博',
            sex: '男',
            age:'19岁',
            edubg:'本科',
            phone:'162526',
            marital:'未婚',
            level:'A',
            department:'财务部',
            workingyears:'5年',
            cardnum:'165265616',
            status:'在职',
            leaveDate:'2021-01-02'
        }],
        //被选中的行数列表
        multipleSelection: []
    },
    getters:{}
}